package net.taobaoge.common.framework.test.demo;

import java.util.ArrayList;
import java.util.List;

import net.taobaoge.common.framework.util.page.Pagination;

public class PaginationDemo {
	public static void main(String[] args) {
		List<Integer> list = new ArrayList<Integer>();
		for (int i = 1; i < 101; i++) {
			list.add(i);
		}
		Pagination pg =   new  Pagination<Integer>(1,5,list);
		List<Integer> list2   = pg.getPagedList();
		System.out.println(pg.toString());
		for (Integer integer : list2) {
			System.out.println(integer);
		}
		
		
	}
}
